/**
* @file			main.c
* @author  		Eranga Perera
* @date    		December 06 2014
*/

/* Includes ------------------------------------------------------------------*/
#include <stdio.h>
#include "LCD.h"
#include "HD44780LIB.h"

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

int main(){
	//time in ms
SysTick_Config(SystemCoreClock/1000);
	
while(1){
	
	LCD_Init();
	
	
	//Testing each methord
	//print old password
	Reset_pressed();
	//print error
  wrong_code();
	
	//print new password
	Enter_new_password();
	
	//print alarm on
	LCD_ALARM_ON();
	
	//print 1234
  LCD_write(12345);	

	
}



return 1;
}